package com.dshore.messagecenter.model.technology;

import java.io.Serializable;
import java.util.Date;

/**
 * 短信验证码实体类
 * @author panyi
 */
public class AuthCode implements Serializable {

    private static final long serialVersionUID = -1160460806411262524L;

    // 电话号码
    private String phoneNumber;

    // 短信验证码
    private String smsCode;

    // 创建时间
    private Date createTime;

    private String smsType;

    // 错误次数
    private int errCount = 0;

    // 清除标记
    private boolean cleanFlg = false;

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getSmsCode() {
        return smsCode;
    }

    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getErrCount() {
        return errCount;
    }

    public void addErrCount() {
        errCount = errCount + 1;
    }

    public boolean isCleanFlg() {
        return cleanFlg;
    }

    public void setCleanFlg(boolean cleanFlg) {
        this.cleanFlg = cleanFlg;
    }

    public String getSmsType() {
        return smsType;
    }

    public void setSmsType(String smsType) {
        this.smsType = smsType;
    }

}
